package com.example.admin.service;

import com.example.xo.pojo.Blog;
import com.example.xo.vo.BlogVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface BlogService {
    boolean add(Blog blog);
    BlogVo findByTitle(String title);

    List<BlogVo> findAll();

    BlogVo findById(String id);

    boolean deleteById(String id);

    boolean update(Blog blog);


    Blog findBlogById(String id);

    Blog findPoById(String id);

}
